<script src="<?php echo base_url() . 'assets/js/app/list.js'; ?>"></script>
<?php echo anchor(base_url(),"Home");?>
&nbsp
<?php echo anchor("role/Role/create","Create");?>
<!--search meta data-->
<?php echo $meta_search_form;?>
<form action="<?php echo site_url('role/Role/delete_all');?>" method="post" onsubmit="return is_check()">
<table>
  <tr>
  	<th><input type="checkbox" onClick="toggle(this)" /></th>
    <th>Id</th>
    <th>Role</th>
    <th>Action</th>
  </tr>
<?php if(isset($results)) : foreach($results as $row):?>
  <tr>
  	<td><input type="checkbox" name="delete_id[]" value="<?php echo $row->id;?>"></td>
    <td><?php echo $row->id;?></td>
    <td><?php echo $row->name;?></td>
    <td><?php echo anchor("role/role/show/$row->id","Show");?>
    <?php echo anchor("role/role/update/$row->id","Edit");?></td>
    
  </tr>
    <?php endforeach;?>
    <?php endif;?>
</table>
<input type="submit" name="delete" value="Delete" />
</form>
<?php echo $pagination_link;?>